package org.example.entity;

/**
 * 一个简单的单项链表节点
 */
public class ListNode {
    public ListNode next;
    public int val;

    public ListNode() {
    }
    public ListNode(int val) {
        this.val = val;
    }
    public ListNode(int val, ListNode next) {
        this.val = val;
        this.next = next;
    }
}
